<!-- 背景图平铺方式 -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图平铺方式</title>
    <style>
        div {
            width: 400px;
            height: 400px;
            background-color: greenyellow;

            background-image: url(../Pictures/Desk1.jpg);

            /* 不平铺，盒子左上角显示一张背景图 */
            background-repeat: no-repeat;

            /* 平铺 */
            background-repeat: repeat;

            /* 水平平铺 */
            background-repeat: repeat-x;
        }
    </style>
</head>
<body>
    <div>背景图平铺方式</div>
</body>
</html>